#ifndef __Chg_Voltage_Current_H
#define __Chg_Voltage_Current_H

#ifdef APM32E10X_HD
	#include "apm32e10x_adc.h"
	#include "apm32e10x_dma.h"
	#include "apm32e10x_rcm.h"
	#include "apm32e10x_gpio.h"
	
#elif defined AT32F403AVGT7
	#include "at32f403a_407_adc.h"
	#include "at32f403a_407_dma.h"
	#include "at32f403a_407_crm.h"
	#include "at32f403a_407_gpio.h"

#else
	#include "apm32f10x_adc.h"
	#include "apm32f10x_dma.h"
	#include "apm32f10x_rcm.h"
	#include "apm32f10x_gpio.h"
#endif



// 工作电流和电压检测 // 
//引脚块1 = 接引脚块A
#define ChgU_RTC             RCM_APB2_PERIPH_GPIOA
#define ChgU_PinPort         GPIOA
// 电压 = PA4
#define ChgU_PinId           GPIO_PIN_4
// 电流 = PA5
#define ChgI_PinId           GPIO_PIN_5 
 
// ADC通道
#define ChgU_ADC_Chn         ADC_CHANNEL_4
#define ChgI_ADC_Chn         ADC_CHANNEL_5


void ADC_ChgUI_Init(void);

#endif


